import MessageQueue from '../plugins/MessageQueue';

var petService = {};
// 宠物详情
petService.detail = function(call,id,access){
	var params={
		id:id,
		access:access,
	};
	MessageQueue('pet/detail?',params,function(msg){
		call(msg)
	})
}

// 时间轴
petService.axisList = function(call,pet_id,access,page){
	var params={
		pet_id:pet_id,
		access:access,
		page:page||1,
	};
	MessageQueue('pet/axis-list?',params,function(msg){
		call(msg)
	})
}

module.exports = petService;